import request from '@/utils/request';
import { parseStrEmpty } from '@/utils/ruoyi';

// 分页查询薪酬管理
export function PayPage(data) {
    return request({
        url: '/payment/page',
        method: 'post',
        data: data,
    });
}
// 分页查询薪酬管理--明细
export function PayPageM(data) {
    return request({
        url: '/payment/detail/page',
        method: 'post',
        data: data,
    });
}

// 导入考勤数据
export function Simport(data) {
    return request({
        url: '/payment/attendance/import',
        method: 'post',
        headers: { 'Content-Type': 'multipart/form-data' },
        data: data,
    });
}

// 导入薪酬数据
export function Simport1(data) {
    return request({
        url: '/payment/data/import',
        method: 'post',
        headers: { 'Content-Type': 'multipart/form-data' },
        data: data,
    });
}

// 开始核算数据
export function Simport2(data) {
    return request({
        url: '/payment/calculate',
        method: 'post',
        data: data,
    });
}
//导出
export function deriveSb(data) {
    return request({
        url: '/payment/export',
        method: 'post',
        responseType: 'blob',
        data: data,
    });
}

// 提交审核
export function PayShenhe(data) {
    return request({
        url: '/payment/submit',
        method: 'post',
        data: data,
    });
}
// 撤回审核
export function revocationShenhe(data) {
    return request({
        url: '/payment/cancel',
        method: 'post',
        data: data,
    });
}

// 编辑社保明细
export function EditPayDetails(data) {
    return request({
        url: '/payment/detail/edit',
        method: 'post',
        data: data,
    });
}
//
// 删除明细
export function delSbMx(query) {
    return request({
        url: '/payment/detail/delete',
        method: 'delete',
        params: query,
    });
}
